home *** CD-ROM | disk | FTP | other *** search
- /*
- * LoadNonExistentResource()
- * Loads a non-existent resource in, and attempts to delete it.
- *
- * Assumptions:
- * hInst is the instance of our program
- * The cursor 'BOGUS' does not exist.
- *
- */
-
- LoadNonExistentResource(HANDLE hInst)
- {
- HCURSOR hCurse;
-
- /*----------------------*/
-
- hCurse = LoadCursor(hInst,"BOGUS");
-
- if (hCurse != NULL)
- DeleteObject((HANDLE)hCurse);
- else
- {
- MessageBox(MainhWnd,
- "Attempting to delete an invalid cursor",
- "Debug",
- MB_ICONSTOP | MB_OK);
- }
- }
-
-
-
-